const { sequelize } = require('../config/db');
const { DataTypes } = require('sequelize');

const VaccineType = sequelize.define('VaccineType', {
  id: {
    type: DataTypes.INTEGER,
    primaryKey: true,
    autoIncrement: true
  },
  name: {
    type: DataTypes.STRING(200),
    allowNull: false,
    comment: '疫苗类型名称'
  },
  icon: {
    type: DataTypes.STRING(500),
    allowNull: false
  }
}, {
  tableName: 'vaccine_types',
  timestamps: true,
  createdAt: 'created_at',
  updatedAt: 'updated_at'
});

module.exports = { VaccineType };